<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="Content-Type" content="text/html">
	<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<meta name="format-detection" content="email=no">
	<title>注册</title>
	<!-- 默认样式链接 -->
	<link rel="stylesheet" type="text/css" href="../css/reset.css">
	<!-- 字体图标链接 -->
	<!-- 动画swiper链接 -->
	<!-- 自定义样式链接 -->
	<link rel="stylesheet" href="../css/zb.css" />
	<!-- 图标库 -->
	<link rel="stylesheet" href="../assets/font_icon/iconfont.css" />
	<!-- bootstrap链接 -->
	<!-- <link rel="stylesheet" type="text/css" href="src/bootstrap/css/bootstrap.min.css"> -->
	<!--[if lt IE 9]-->
        
    <!--<![endif]-->
	<!-- <style type="text/css">
		@font-face {
		      font-family: '';
		      src: url('fonts/STXINGKA.eot'); /* IE9+ */
		      src: url('fonts/STXINGKA.eot?#iefix') format('embedded-opentype'), /*IE6-IE8 */
		           url('fonts/STXINGKA.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
		           /*url('fonts/STXINGKA.woff') format('woff'), */ /* chrome、firefox */
		           url('fonts/STXINGKA.svg') format('svg'); /* iOS 4.1- */
		    }
	</style> -->
</head>
<body>

	<!--!-- 头部导航 -->
	<header>
	    <a href="wode.html" class="quxiao">取消</a>
		<h3>注册</h3>
	</header>
	<nav class="nav zc_nav">
		
	</nav>
		<!-- banner -->
		
	<figure class="zc_active">
		<ul class="zc_inp">
        	<li><input type="text" class="zc_mobile"  placeholder="手机号码"></li>
        	<li><input type="password" class="zc_password" placeholder="6-20位字母数字密码"></li>
        	<li><input type="button" class="zc_btn" value="注册"></li>
        </ul>
        <p class="dl_prompt"><a>手机号有误</a></p>
        <figure class="dl_zc">
        	<a href="denglu.html">已有账号？立即登录</a>
        </figure>
        
	</figure>
		<!-- 如果需要分页器 -->
	 
	    
	    <!-- 如果需要导航按钮 -->
	    <!-- <div class="swiper-button-prev"></div>
	    <div class="swiper-button-next"></div> -->
	    
	    <!-- 如果需要滚动条 -->
	    <!--<div class="swiper-scrollbar">
	    	
	    </div>-->
	</div>
	
	
    <!-- xx快报 -->
    
    <!-- 热卖商品 -->
    
    <!-- 新品上市 -->
    
    <!-- 当前用户、回顶部 -->
    
    <!-- 底部导航 -->
   





	<!-- 动画swiper链接 -->
	

	<!-- jqurey 链接 -->
	<script type="text/javascript" src="../assets/jquery-3.2.1.min.js"></script>
	<!-- 自定义js 链接 -->
	<script src="../assets/flexible/flexible.debug.js"></script>
	<!-- bootstrap链接 -->
	
	<!-- <script type="text/javascript" src="src/bootstrap/js/bootstrap.min.js"></script> -->
	
	<script type="text/javascript">
	    function toUTC(day){
                var date = new Date();
                date.setTime(date.getTime() + day*24*60*60*1000)
                return date.toUTCString();
            }
	    $(".zc_btn").click(function(){
                
            var user = $(".zc_mobile").val();
            var pwd = $(".zc_password").val();
            
            if(user && pwd){

                //错误形式
                //document.cookie = "datauser=zhi1&datapwd=zhi2"
                
                //正确形式，一行语句只能存储一条
                document.cookie = "datauser="+ user + "; expires=" + toUTC(1/24/60);
                document.cookie = "datapwd=" + pwd;
                document.cookie = "datapwd2=" + pwd;
                
                alert("注册成功");
            }else{
                alert("注册失败");
            }
            
        })
	</script>
</body>
</html>